Skip to content

Conversation

jpauli
Copy link

@jpauli jpauli commented Oct 24, 2014

I met some users that used such statements just to hint their IDE about auto-completion.

$a instanceof Foo;

This is a useless statement that gets compiled and run every time for nothing (usually 3 OPCodes involved)

This PR adds a pass to optimize such statement

@Ocramius
Copy link

Missing test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants